package com.alfy.sbdemo.websocketdemo.demo2;

import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * client controller
 *
 * @author pengyf
 * @date 2024/05/28
 */
@RestController
public class ClientController2 {

    @GetMapping("/test2")
    public String test2() throws Exception {
        MyAuthWebSocketClient myAuthWebSocketClient = new MyAuthWebSocketClient();
        myAuthWebSocketClient.connect();
        return "success";
    }
}
